package com.zyb.services.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zyb.core.page.PageHelper;
import com.zyb.mapper.SysUserMapper;
import com.zyb.request.SysUserRequest;
import com.zyb.services.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import com.zyb.model.po.SysUser;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;


@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> implements SysUserService {
    @Autowired
    private SysUserMapper sysUserMapper;
    @Override
    public IPage<SysUser> getPage(SysUserRequest user) {
        IPage<SysUser> iPage = sysUserMapper.selectSysUserPage(PageHelper.parsePage(user),user);
        return iPage;
    }
}
